package com.junzhiit.nengji.app.web.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bainaeco.framework.util.AssertUtil;
import com.junzhiit.nengji.app.service.OrdersDataHistoryService;
import com.junzhiit.nengji.app.web.vo.DataTablesParamVO;
import com.junzhiit.nengji.app.web.vo.OrdersDataHistoryVO;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/orders/data")
public class OrdersDataHistoryController extends BaseController{

	@Autowired
	private OrdersDataHistoryService ordersDataHistoryService;
	
	@ApiOperation(value = "查询财务报表数据")
	@RequestMapping(method = RequestMethod.GET)
	public Map<String, Object> findAll(DataTablesParamVO dtp, OrdersDataHistoryVO ordersDataHistoryVO) {
		AssertUtil.notBlank(ordersDataHistoryVO.getSessionId(), "sessionId is required.");
		return ordersDataHistoryService.findAll(dtp, ordersDataHistoryVO);
	}
	
}
